<template>
  <tx-table-column-text :label="label" v-if="show(showKey||field)" :width="width">
      <template slot-scope="scope">
          <!-- // :disabled="!!scope.row?.id && field=='phone'" -->
          <tx-table-input :entity="scope.row"  :name="field" :action="scope.row.$action" :rules="rules[field]"
          :prop="buildRowProp(scope,field)"  :placeholder="'请输入'+label" 
          /> 
      </template>
  </tx-table-column-text> 
</template>
<script>

import columnData from "./data.json"
import columnMixin from "./mixin.js";

export default {
  mixins: [columnMixin],
  props: {
    label: {
      type: [String],
      default: ""
    },
    showKey: {
      type: [String],
      default: ""
    },
    field: {
      type: [String],
      default: ""
    }, 
    width: {
      type: String,
      default: ""
    },
    rules: {
      type: Object,
      default() {
        return {  };
      },
    },
    content: {
      type: Object,
      default() {
        return {
          controller: null,  
          props: {  } , 
          columns: [ ] 
        };
      },
    },
  },
  data() {
      return { 
          columnData, 
      };
  },
  
  components: { 
  },
  watch: {
 
  },
  mounted() {
 
  },

  methods: { 
  }
};
</script>


<style lang="scss">
 
 
</style>


